package com.huawei.esdk.uc.device.bean;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "message", propOrder = {
    "head",
    "bodyAsString"
})
@XmlRootElement(name = "message")
public class XMLReqMsg
{
    private XMLReqHeader head;
    
    @XmlTransient
    private Object body;    
    
    @XmlElement(name="body")
    private String bodyAsString;

    public XMLReqHeader getHead()
    {
        return head;
    }

    public void setHead(XMLReqHeader head)
    {
        this.head = head;
    }

    public Object getBody()
    {
        return body;
    }

    public void setBody(Object body)
    {
        this.body = body;
    }

    public String getBodyAsString()
    {
        return bodyAsString;
    }

    public void setBodyAsString(String bodyAsString)
    {
        this.bodyAsString = bodyAsString;
    }
}
